package com.levi.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.levi.domain.User;
import com.levi.holder.ThreadLocalHodler;
import com.levi.mapper.UserMapper;
import com.levi.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author shentong
 * @since 2022/3/11 9:43 PM
 */
@Service
@Slf4j
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

	@Override
	public void TestThreadLocalHolder() {
		User user = (User) ThreadLocalHodler.holder.get();
		log.info("userService   user :===>{}", user);
	}

}
